import http from "@/http/index";

export default {

    insert: {
        name: "新增供应商",
        url: "/api/vendor",
        call: async function (params: any = {}){
            return await http.post(this.url, params)
        }
    },
    update: {
        name: "供应商修改",
        url: "/api/vendor",
        call: async function (params: any = {}) {
            return await http.put(this.url, params)
        }
    },
    select: {
        name: "供应商查找",
        url: "/api/vendor",
        call: async function (params: any = {}) {
            return await http.get(this.url, params)
        }
    },
    patch: {
        name: "部分更新",
        url: "/api/vendor",
        call: async function (params: any = {}) {
            return await http.patch(this.url, params)
        }
    }


}



